package com.farm.area.service;

import com.farm.area.pojo.FarmLand;
import com.farm.entity.PageResult;

import java.util.List;
import java.util.Map;

/**
 * @author azhe
 * @create 2020/10/12
 */
public interface FarmLandService {
    boolean add(FarmLand farmLand, Integer farmId);

    List<Map<String,Object>> findAll();

    PageResult findPage(Map<String, Object> searchMap, int page, int size);

    int updateById(FarmLand farmLand);

    int growCrops(Integer farmlandId, Integer cropsId);

    int installDevice(Integer farmlandId, Integer cdid, String position);
}
